package extrace.misc.model;

public class Rp<T>{
    private T data;
    private Boolean flag;

    private String msg;

    public Rp() {
    }

    public Rp(T data, Boolean flag, String msg) {
        this.data = data;
        this.flag = flag;
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Rp{" +
                "data=" + data +
                ", flag=" + flag +
                ", msg='" + msg + '\'' +
                '}';
    }
}
